html,
body {
	margin: 0;
	padding: 0;
	height: 100%;
	overflow: hidden;

}

* {
	margin: 0;
	padding: 0;
	font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
}

.left {
	float: left;
}


.right {
	float: right;
}

.fleft {
	flex-direction: row;
}

.fright {
	flex-direction: row-reverse;
}

#chat {
	height: 100%;
	width: 100%;
	overflow: hidden;
	color: #303133;
	z-index: 999;
}

.chat_box {
	/* Safari 设为 Flex 布局以后，子元素的float、clear和vertical-align属 属性将失效。*/

	height: 100%;
	width: 100%;
	overflow: hidden;
	color: #303133;
	z-index: 999;
}


.chat_box * {
	box-sizing: border-box;
}

.chat_box>.chat_top {
	min-height: 2rem;
	min-width: 100%;
	padding: 0.5rem;
	color: #ECECEC;
	background-color: #409EFF;
}

.chat_box>.chat_main {
	border: 1px solid #EBEEF5;
	/* border-radius: 2px; */
	min-width: 100%;
	height: -webkit-calc(100% - 7.2rem);
	height: -moz-calc(100% - 7.2rem);
	height: calc(100% - 7.2rem);
	overflow: auto;
	background-color: #efefef;
}

.chat_box>.chat_main>.row {
	width: 100%;
	min-height: 5rem;
	display: inline-block;
	margin-top: 1rem;
	margin-bottom: 1rem;
}

.chat_box>.chat_main .head {
	width: 100%;
	height: 2rem;
	color: #606266;
	display: -webkit-flex;
	/* Safari */
	display: flex;
	flex-wrap: nowrap;
	align-items: baseline;
}

.chat_box>.chat_main .head span {
	margin: 0.4rem;
}

.chat_box>.chat_main .head>img {
	display: block;
	margin: auto;
	max-width: 2rem;
	max-height: 2rem;
}

.chat_box>.chat_main .msg {
	word-break: break-all;
	padding: 0 20px;
}


.chat_box>.chat_main .msg>p {
	padding: 0.5rem;
	background-color: #ffffef;
	border-radius: 4px;
}

.chat_box>.chat_main .msg .icon {
	width: 29px;
	height: 29px;

}

.chat_box>.chat_bottom {
	border: 1px solid #EBEEF5;
	min-width: 100%;
	display: inline-block;
	height: 5rem;
	background-color: #F2F6FC;
}

.chat_bottom>textarea {
	width: 70%;
	height: 4.7rem;
}

.chat_bottom>.bts {
	max-width: 30%;
	height: 4.7rem;
	overflow: hidden;
}

.chat_bottom>.bts .bt {
	width: 2rem;
	height: 2rem;
	margin: 0.2rem;
	float: left;
}

.chat_bottom>.bts img {
	width: 100%;
	height: 100%;
}

.chat_bottom>.bts .bt-icon {
	position: relative;
	display: inline-block;
}

.chat_bottom .bt-icon:hover .icons {
	display: inline-block;
}

.chat_bottom .bt-icon .icons {
	display: none;
	position: fixed;
	background-color: #f9f9f9;
	width: 22rem;
	height: 20rem;
	box-shadow: 0px 8px 8px 0px rgba(0, 0, 0, 0.2);
	padding: 8px 4px;
	z-index: 2;
	bottom: 4.5rem;
	right: 9px;
}

.chat_bottom .bt-icon .icons img {
	width: 30px;
	height: 30px;
	cursor: pointer;
	margin: 4px 4px;
}
